package com.liuzh.kaoyanspringboot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liuzh.kaoyanspringboot.controller.dto.UserDTO;
import com.liuzh.kaoyanspringboot.entity.User;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 刘志鸿
 * @since 2023-02-19
 */
public interface UserService extends IService<User> {

    UserDTO login(UserDTO userDTO);

    User register(UserDTO userDTO);

    UserDTO getbyUsername(String username);

    Page<User> findPage(Page<User> page, String username, String nickname, String email, String address);
}
